import { createContext } from "react";

// 定义 Context 的类型
type MyContextType = {
    contextData?: string, 
    updateConetextData?: Function
}

// step1: 创建Context
export const TestContext = createContext<MyContextType>({})